package com.alinesno.cloud.gateway.admin.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * <p>
 * 服务接口管理，此处针对的是Socket服务接口 
 * </p>
 *
 * @author WeiXiaoJin
 * @since 2020-01-30 09:37:03
 */
@Entity
@Table(name = "gate_business_server")
public class GateBusinessServerEntity extends BaseGatewayEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 业务服务
	 */
	private String business;
	
	/**
	 * 银行代码
	 */
	private String bank;
	/**
	 * 所属接口
	 */
	private String api;
	/**
	 * 交易码
	 */
	private String transaction;
	/**
	 * 服务描述
	 */
	@Column(name = "server_desc")
	private String serverDesc;

	/**
	 * 服务IP
	 */
	private String serverIp ; 

	/**
	 * 服务端口
	 */
	private String serverPort ; 

	public String getServerIp() {
		return serverIp;
	}

	public void setServerIp(String serverIp) {
		this.serverIp = serverIp;
	}

	public String getServerPort() {
		return serverPort;
	}

	public void setServerPort(String serverPort) {
		this.serverPort = serverPort;
	}

	public String getBusiness() {
		return business;
	}

	public void setBusiness(String business) {
		this.business = business;
	}

	public String getBank() {
		return bank;
	}

	public void setBank(String bank) {
		this.bank = bank;
	}

	public String getApi() {
		return api;
	}

	public void setApi(String api) {
		this.api = api;
	}

	public String getTransaction() {
		return transaction;
	}

	public void setTransaction(String transaction) {
		this.transaction = transaction;
	}

	public String getServerDesc() {
		return serverDesc;
	}

	public void setServerDesc(String serverDesc) {
		this.serverDesc = serverDesc;
	}

	@Override
	public String toString() {
		return "GateBusinessServerEntity{" + "business=" + business + ", bank=" + bank + ", api=" + api
				+ ", transaction=" + transaction + ", serverDesc=" + serverDesc + "}";
	}
}
